#include "global.h"
#include "sfx_manager.h"
#include <iostream>
using namespace std;

sfx_manager::sfx_manager()
{
    load_sound(SOUND_DANG, "media/dang.mp3");
}

sfx_manager::~sfx_manager()
{

}

void sfx_manager::play_sound(int id, int punch, int pan)
{
	if (punch>15)
	{
		hge->Effect_PlayEx(sounds[id], punch, pan);
	}
}

void sfx_manager::load_sound(int id, char* file)
{
    sounds[id] = hge->Effect_Load(file);
}